﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Palsta.Core.manifest
{
    class CustomValidationErrorMsg
    {
        public enum ErrorMsgType
        {
            modal,
            modeless
        }

        #region Members

        private ErrorMsgType type;
        private String shortMessage;

        #endregion

        #region Constructors

        public CustomValidationErrorMsg()
            : this(ErrorMsgType.modeless, "")
        {
        }

        public CustomValidationErrorMsg(CustomValidationErrorMsg.ErrorMsgType type, String msg)
        {
            this.type = type;
            this.shortMessage = msg;
        }

        #endregion

        #region Accessors

        public virtual String ShortMessage
        {
            get
            {
                return this.shortMessage;
            }
            set
            {
                this.shortMessage = value;
            }
        }

        public virtual ErrorMsgType Type
        {
            get
            {
                return this.type;
            }
            set
            {
                this.type = value;
            }
        }

        #endregion
    }
}
